// 商品数据模型
const mongoose = require("mongoose");
const { Schema, model } = mongoose;

const goods = new Schema({
    title:{type:'String', default:'商品描述'},
    label:{type:'Array'},   //商品标签
    price:{type:'Number', default:0},
    category:{type:'String'},   //商品分类
    fmImg:{type: 'String'},
    imgArr:{type:'Array'}
},{
    timestamps:true
});

module.exports = model('Goods', goods)
